/**
 * filter 过滤器
 */

Vue.filter("currency",function(data, unit){
    data = data || 0
    unit = unit || "元"
    return data  + unit
})
Vue.filter("meter",function(data){
    data = (data/1000).toFixed(2) || 0
    return data
})

var app = new Vue({
    el : "#app",
    data : {
        price : 100,
        length : 0
    }
})